import { onMounted, reactive, toRefs } from "vue";
import homeApi from "@/apis/home";

export default function () {
    const state = reactive({
        Banners: [],
    });
    onMounted(async () => {
        let { Banners } = await homeApi.getSwipe();
        state.Banners = Banners;
    });

    return { ...toRefs(state) };
}
